From: Florian Müllner Date: Thu, 25 Apr 2019 21:11:11 +0000 (+0200) Subject: ci: Try harder to find a matching mutter branch X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~845^2^2~243 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=43cef45229230ba375ddc7d6b7b0205c19b13a07;p=gnome-shell.git ci: Try harder to find a matching mutter branch Depending on how gitlab's CI checks out gnome-shell, the shell branch may not have a local reference like "gnome-3-32", but only a remote one like "remotes/origin/gnome-3-32". Consider that case as well when looking for a corresponding mutter branch. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/511 --- diff --git a/.gitlab-ci/checkout-mutter.sh b/.gitlab-ci/checkout-mutter.sh index 618ad2582..9eb72ebfc 100755 --- a/.gitlab-ci/checkout-mutter.sh +++ b/.gitlab-ci/checkout-mutter.sh @@ -26,6 +26,7 @@ fi if [ -z "$mutter_target" ]; then mutter_target=$(git branch -r -l origin/$shell_branch) + mutter_target=${mutter_target:-$(git branch -r -l ${shell_branch#remotes/})} mutter_target=${mutter_target:-origin/master} echo Using $mutter_target instead fi